package module

import (
	"strings"
)

type ContractList struct {
	Data []*ContractInfo
}

func (ci *ContractList) String() string {
	builder := strings.Builder{}
	for i := range ci.Data {
		builder.WriteString(ci.Data[i].String())
	}
	return builder.String()
}

type ContractInfo struct {
	Path               string
	DirectoryName      string
	ContractStructName string
}

func (ci *ContractInfo) String() string {
	return strings.Join([]string{"Path", ci.Path, "DirectoryName", ci.DirectoryName, "ContractStructName", ci.ContractStructName}, ",")
}
